#ifndef QCOMBOITEMLISTWIDGET_H
#define QCOMBOITEMLISTWIDGET_H

#include <QWidget>
#include <QTreeWidget>
#include <QToolButton>

namespace Ui {
class QComboItemListWidget;
}


class QComboItemListWidget : public QWidget
{
    Q_OBJECT
    
public:
    explicit QComboItemListWidget(QTreeWidgetItem* item,QTreeWidget* widget,QWidget *parent = 0);
    ~QComboItemListWidget();
    
    void    set_text(const QString & text);
    void    set_icon(const QString & icon);

    QTreeWidgetItem *get_item();
protected:
    void    enterEvent(QEvent *);
    void    leaveEvent(QEvent *);
signals:
    void    up();
    void    down();
    void    remove();
    void    edit();
private:
    Ui::QComboItemListWidget *ui;

protected:
    QToolButton     *m_up_button;
    QToolButton     *m_down_button;
    QToolButton     *m_delete_button;
    QToolButton     *m_edit_button;
    QTreeWidget     *m_tree_widget;
    QTreeWidgetItem *m_tree_item;
};

#endif // QCOMBOITEMLISTWIDGET_H
